home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / system / ffg202.zip / UTIL_BAT.ZIP / VIRUSCHK.BAT < prev   
DOS Batch File  |  1994-08-21  |  1KB  |  40 lines

  1. @echo off
  2. ::
  3. :: This batch file uses FFG to scan for a virus signature in COM and EXE files.
  4. ::
  5. :: explanation of FFG options used:
  6. ::
  7. :: /qmf   = quiet except for meter and found files
  8. :: /v5    = 50 line video
  9. :: /p     = pause after full screen
  10. :: /bfd   = beep when found and when done
  11. :: /$     = case-sensitive string to search for
  12. :: /:!CN  = skip scan of CD-ROM and network drives
  13. ::
  14. :: In this case it searches for the signature "KAOS4"
  15. ::
  16. echo Scanning for KAOS4 virus...
  17. echo.
  18. echo   To quit press [ESC]
  19. echo   To skip current drive press S
  20. echo.
  21. ffg *:*.[com,exe] /$=cKAOS4 /qmf /:!CN /v5 /p /bfd
  22. if errorlevel 0 if not errorlevel 1 goto NOVIRUS
  23. if errorlevel 2 goto ABORT
  24.   echo.
  25.   echo Virus signature found in one or more files listed above.
  26.   echo.
  27.   echo Contact someone who can remove this virus.
  28.   pause
  29.   goto END
  30. :ABORT
  31.   echo.
  32.   echo  Virus scan aborted or an error occurred during scan.
  33.   echo.
  34.   goto END
  35. :NOVIRUS
  36.   echo.
  37.   echo  No virus was found.
  38.   echo.
  39. :END
  40.